class NumOneInBinary{
	public NumOneInBinary(){
		
	}
	public static int countOne(int number){
		int counter = 0;
		while(number!=0){
			if((number & 1) == 1){
				counter++;
			}
			number = number >> 1;
		}
		return counter;
	}
	public static void main(String[] args){
		System.out.println("Count 1 in binary:"+countOne(255));
	}
}